import { defineStore } from 'pinia'
import {reactive} from 'vue'
import {exampleTypeList} from '@/api/example.js'
export const useComStore = defineStore('common', () => {
  const comData = reactive({
    typeList:[]
  })
  const setTypeList = async () =>{
    let res = await exampleTypeList()
    comData.typeList = res.data
  }

  return { comData, setTypeList }
})